package com.company.singletonExample;

/**
 * Created by yijy on 2017/6/13.
 * Java单例——饿汉（变种）
 */
public class SingletonEHanChangeModel {
    private static SingletonEHanChangeModel instance = null;

    static {
        instance = new SingletonEHanChangeModel();
    }
    private SingletonEHanChangeModel(){}

    public static SingletonEHanChangeModel getInstance(){
        return instance;
    }
}
